<div id="pad-wrapper" class="new-user">
	<div class="row-fluid header">
		<h3>创建社团</h3>
	</div>
	<div class="row-fluid form-wrapper">
		<!-- left column -->
		<div class="span9 with-sidebar">
			<div class="container">
				<form class="new_user_form form-horizontal" action="/organization/save" method="post" id="dataForm" enctype="multipart/form-data">
					<div class="field-box"></div>
					<div class="control-group form-group span12">
						<label class="control-label" for="organization_name">社团名称：</label>
						<div class="controls col-lg-5">
							<input type="text" class="form-control" id="organization_name" name="organization_name" placeholder="社团名称"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="description">社团描述：</label>
						<div class="controls col-lg-5">
							<textarea type="text" class="span6 form-control" rows="5" id="description" name="description" placeholder="社团描述"></textarea>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="icon">社团头像：</label>
						<div class="controls col-lg-5">
							<input type="file" accept="image/*" id="icon" name="icon"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="proprieter_name">社长姓名：</label>
						<div class="controls col-lg-5">
							<input type="text" class="form-control" id="proprieter_name" name="proprieter_name" placeholder="社长姓名"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="proprieter_desc">社长介绍：</label>
						<div class="controls col-lg-5">
							<textarea type="text" class="span6 form-control" rows="5" id="proprieter_desc" name="proprieter_desc" placeholder="社长介绍"></textarea>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="proprieter_icon">社长头像：</label>
						<div class="controls col-lg-5">
							<input type="file" accept="image/*" id="proprieter_icon" name="proprieter_icon"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="public">社团公告：</label>
						<div class="controls col-lg-5">
							<textarea type="text" class="span6 form-control" rows="5" id="public" name="public" placeholder="社团公告"></textarea>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="t_sort">排序：</label>
						<div class="controls col-lg-5">
							<input type="number" class="span1 form-control" id="t_sort" name="t_sort" min="1"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="join_qrcode">社团入群二维码：</label>
						<div class="controls col-lg-5">
							<input type="file" accept="image/*" id="join_qrcode" name="join_qrcode"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="template_image">发送模版图：</label>
						<div class="controls col-lg-5">
							<input type="file" accept="image/*" id="template_image" name="template_image"/>
						</div>
					</div>
					<div class="control-group form-group span12">
						<label class="control-label" for="status">状态：</label>
						<div class="controls col-lg-5">
							<div class="ui-select span1">
								<select name="status">
									<option value="1">使用</option>
									<option value="2">禁用</option>
								</select>
							</div>
						</div>
					</div>
					<div class="span12 field-box"></div>
					<div class="control-group form-group span12 actions">
						<label class="control-label"></label>
						<div class="controls col-lg-5">
							<input type="submit" class="btn-glow primary" value="提交" />
						</div>
					</div>
				</form>
			</div>
		</div>
		<!-- side right column -->
		<div class="span3 form-sidebar pull-right">
		</div>
	</div>
	<script type="text/javascript">
	$(document).ready(function() {
		$('#dataForm').bootstrapValidator({
			message: 'This value is not valid',
			feedbackIcons: {
				valid: 'glyphicon glyphicon-ok',
				invalid: 'glyphicon glyphicon-remove',
				validating: 'glyphicon glyphicon-refresh'
			},
			fields: {
				organization_name: {
					message: '社团名称不符合规则',
					validators: {
						notEmpty: {
							message: '社团名称是必填项，不能为空'
						}
					}
				},
				description: {
					message: '社团描述不符合规则',
					validators: {
						notEmpty: {
							message: '社团描述是必填项，不能为空'
						}
					}
				},
				icon: {
					message: '社团头像不符合规则',
					validators: {
						notEmpty: {
							message: '社团头像是必填项，不能为空'
						}
					}
				},
				proprieter_name: {
					message: '社长姓名不符合规则',
					validators: {
						notEmpty: {
							message: '社长姓名是必填项，不能为空'
						}
					}
				},
				proprieter_desc: {
					message: '社长介绍不符合规则',
					validators: {
						notEmpty: {
							message: '社长介绍是必填项，不能为空'
						}
					}
				},
				proprieter_icon: {
					message: '社长头像不符合规则',
					validators: {
						notEmpty: {
							message: '社长头像是必填项，不能为空'
						}
					}
				},
				public: {
					message: '社团公告不符合规则',
					validators: {
						notEmpty: {
							message: '社团公告是必填项，不能为空'
						}
					}
				},
				t_sort: {
					message: '排序不符合规则',
					validators: {
						notEmpty: {
							message: '排序是必填项，不能为空'
						}
					}
				},
				join_qrcode: {
					message: '社团入群二维码不符合规则',
					validators: {
						notEmpty: {
							message: '社团入群二维码是必填项，不能为空'
						}
					}
				},
				template_image: {
					message: '发送模版图不符合规则',
					validators: {
						notEmpty: {
							message: '发送模版图是必填项，不能为空'
						}
					}
				}
			}
		});
	});
	</script>
</div>